package com.cjc.hotel.server.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author chenjuncai
 */
@ApiModel(value="com-cjc-hotel-server-entity-TAddress")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "t_address")
public class TAddress {
    /**
     * 主键Id,自增
     */
    @TableId(value = "address_id", type = IdType.AUTO)
    @ApiModelProperty(value="主键Id,自增")
    private Integer addressId;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    @ApiModelProperty(value="用户id")
    private Integer userId;

    /**
     * 省市区
     */
    @TableField(value = "province")
    @ApiModelProperty(value="省市区")
    private String province;

    /**
     * 详细地址
     */
    @TableField(value = "address")
    @ApiModelProperty(value="详细地址")
    private String address;

    /**
     * 联系电话
     */
    @TableField(value = "phone")
    @ApiModelProperty(value="联系电话")
    private String phone;

    /**
     * 是否默认（1为是，0为否）
     */
    @TableField(value = "is_default")
    @ApiModelProperty(value="是否默认（1为是，0为否）")
    private Integer isDefault;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value="创建时间")
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time")
    @ApiModelProperty(value="修改时间")
    private Date updateTime;
}
